﻿# CMakeList.txt: HelloOpenGL 的 CMake 项目，在此处包括源代码并定义
# 项目特定的逻辑。
#
cmake_minimum_required (VERSION 3.8)

set(TARGET_NAME "HelloTriangleIndexed")
set(third_party "../third_party")
set(glfw_path "D:/Program Files/glfw")


project (${TARGET_NAME})

include_directories(
	"${glfw_path}/include"
	"${third_party}/glad/include"
)

set(HEADERS
	"${third_party}/glad/include"
	"${glfw_path}/include"
)

set(SRCS "main.cpp")

set(LINK_LIBS ${LINK_LIBS}
	"${glfw_path}/lib/glfw3.lib"
)
message(STATUS "LINK_LIBS: ${LINK_LIBS}")

add_executable (${TARGET_NAME}
	"${HEADERS}"
	"${SRCS}"
	"${third_party}/glad/src/glad.c")

target_link_libraries(${TARGET_NAME} ${LINK_LIBS})
